<template>
	<layout :loading="loading" :curPage="`quipment${data.type}`" title="自动监测设备详情">

		<view class="layui-form">
			
			<inputGroup :disabled="true" text title="设备监测因子" :value="data.factor" ></inputGroup>
			
			<inputGroup :disabled="true" text title="设备名称" :value="data.name" ></inputGroup>
			
			<inputGroup :disabled="true" text title="设备型号" :value="data.model" ></inputGroup>
			
			<inputGroup :disabled="true" text title="生产商" :value="data.manufacture" ></inputGroup>
			
			<inputGroup :disabled="true" text title="设备出厂编号" :value="data.factoryNum" ></inputGroup>
			
			<inputGroup :disabled="true" text title="环保产品认证编号" :value="data.certificationNo" ></inputGroup>
			
			<inputGroup :disabled="true" text title="测试方法" :value="data.testMethod" ></inputGroup>
			
			<inputGroup :disabled="true" text title="检出限" :value="data.detectionLimit" ></inputGroup>
			
			<inputGroup :disabled="true" text title="分析周期" :value="data.analysisCycle" ></inputGroup>
			
			<inputGroup :disabled="true" text title="量程F.S." :value="data.range" ></inputGroup>
			
			<inputGroup v-if="data.type==1" :disabled="true" text title="主要试剂1及浓度" :value="data.reagent1" ></inputGroup>
			
			<inputGroup v-if="data.type==1" :disabled="true" text title="主要试剂2及浓度" :value="data.reagent2" ></inputGroup>
			
			<inputGroup v-if="data.type==1" :disabled="true" text title="主要试剂3及浓度" :value="data.reagent3" ></inputGroup>
			
			<inputGroup :disabled="true" text title="标准曲线参数" :value="data.standardCurve" ></inputGroup>
			
			<inputGroup :disabled="true" text title="验收时间" :value="data.acceptanceTime" ></inputGroup>
			
			<inputGroup :disabled="true" text title="验收监测单位" :value="data.acceptanceCompany" ></inputGroup>
			
			<inputGroup :disabled="true" text title="联网时间" :value="data.networkingTime" ></inputGroup>
			
			<inputGroup :disabled="true" text title="录入人" :value="data.recorder" ></inputGroup>
			
			<inputGroup v-if="data.type==2" :disabled="true" text title="仪器流量范围" :value="data.flowRange" ></inputGroup>
			
			<inputGroup :disabled="true" text title="点位名称" :value="data.stationName" ></inputGroup>
			
			<inputGroup :disabled="true" text title="运维公司" :value="data.servicerName1" ></inputGroup>
			
			<inputGroup :disabled="true" text title="企业名称" :value="data.companyName2" ></inputGroup>
			
			
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn layui-btn-primary" @click="kit.goBack('index')">返回</button>
				</div>
			</div>
		</view>

	</layout>
</template>

<script>
	export default {
		data() {
			return {
				loading: true ,
				data : {
					id : '',
					type :''
				}
			}
		},
		onLoad(params) {
			this.data.id = params.id || "" ;
		},
		onShow() {
			this.loadData();
		},
		methods: {
			
			loadData : function(e){
				var that = this ;
				var data = {
					id : this.data.id
				} ;
				this.kit.get("/admin/quipment/detail",data,function(res){
					that.data = res.data || that.data ;	
					that.loading  = false ;
				});
			}
		}
	}
</script>